<template>
  <footer class="tt-footer">
    <div class="tt-footer-box">
      <ul>
        <li>
          <router-link to="/home" active-class="active">
            <div>
              <span class="iconfont icon-zhuye"></span>
              <p>主页</p>
            </div>
          </router-link>
        </li>
        <li>
          <router-link to="/classify" active-class="active">
            <div>
              <span class="iconfont icon-fenlei"></span>
              <p>分类</p>
            </div>
          </router-link>
        </li>
        <li>
          <router-link to="/cart" active-class="active">
            <div>
              <span class="iconfont icon-gouwuchekong"></span>
              <p>购物车</p>
            </div>
          </router-link>
        </li>
        <li>
          <router-link to="/personal" active-class="active">
            <div>
              <span class="iconfont icon-wode"></span>
              <p>我的</p>
            </div>
          </router-link>
        </li>
      </ul>
    </div>
  </footer>
</template>
<style lang="less">
@import "../../assets/less/variable.less";
@import "../../assets/font/font_icon/iconfont.css";
.tt-footer {
  width: 100%;
  height: @footerHeight;
  position: fixed;
  bottom: -1px;
  left: 0;
  z-index: 1001; // 一览众山小
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0px 1px @shadowColor inset;
  .tt-footer-box {
    width: 100%;
    height: @footerHeight;
  }
  ul {
    width: 100%;
    height: @footerHeight;
    display: flex;
    li {
      flex-grow: 1;
      flex-shrink: 0;
      flex-basis: 25%;
    }
  }
  a {
    display: block;
    height: @footerHeight;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    div {
      span {
        font-size: 20px;
      }
      p {
        font-size: 14px;
      }
    }
  }
  .active {
    background-color: @bgColor2;
    color: @color2;
  }
}
</style>
<script>
// 导入字体图标样式文件
// import '../../../node_modules/bootstrap-icons/font/bootstrap-icons.css'
import "@/assets/font/bootstrap-icons.css";
export default {};
</script>

